﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYQQX
{
    public class Card
    {
        public int GameVersion { get; set; }

        public string Name { get; set; }

        public CardSeason JiJie { get; set; }

        internal System.Windows.Forms.Control ShowControl;

        public Color Color
        {
            get 
            {
                switch (JiJie)
                {
                    case CardSeason.Chun:
                        return ColorTranslator.FromHtml("#66ff66");
                    case CardSeason.Xia:
                        return ColorTranslator.FromHtml("#cc3300");
                    case CardSeason.Qiu:
                        return ColorTranslator.FromHtml("#ff9900");
                    case CardSeason.Dong:
                    default:
                        return ColorTranslator.FromHtml("#99ffff");
                }
            }
        }

        internal Card Clone()
        {
            return new Card()
            {
                Name = this.Name,
                JiJie = this.JiJie,
                GameVersion = this.GameVersion,
                
            };
        }
    }

    public enum CardSeason
    {
        Chun,
        Xia,
        Qiu,
        Dong,
        Null,
        All
    }
}
